﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Manhua2.Provider
{
    public interface IComicProvider
    {
        /// <summary>
        /// 最新更新数量
        /// </summary>
        int TopCount { get; }

        string ProviderName { get; }

        /// <summary>
        /// 下载最新更新漫画
        /// </summary>
        /// <param name="cache"></param>
        /// <returns></returns>
        Task SaveLatestComicsAsync(bool cache);

        /// <summary>
        /// 获取该章节信息
        /// </summary>
        /// <param name="chapterId"></param>
        /// <returns></returns>
        Task SavePagesAsync(int chapterId);

        /// <summary>
        /// 获取该漫画所有章节信息
        /// </summary>
        /// <param name="comicId"></param>
        /// <returns></returns>
        Task SaveChaptersAsync(int comicId);
    }
}
